﻿<Window x:Class="WPFUnitTesting.CustomerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="CustomerView" Height="300" Width="300">
        <StackPanel>
        <TextBlock Text="Customer Name : "/>
            <TextBox x:Uid="name" Text="{Binding CustomerName}"/>
             <TextBlock Text="Date Of Birth (mm/dd/yyyy) : "/>
        <TextBox x:Uid="dob" Text="{Binding DateOfBirth}"/>
            <Button Content="Add Customer" HorizontalAlignment="Right" Command="{Binding Path=AddCustomer}" CommandParameter="{Binding}" />
            <ScrollViewer>
        <ItemsControl ItemsSource="{Binding Customers}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Border BorderBrush="Gray" BorderThickness="1" CornerRadius="5" Margin="2" Padding="1">
                    <StackPanel>
                        <TextBlock Text="{Binding Name}"/>
                        <TextBlock Text="{Binding Path=DateOfBirth, StringFormat=MM/dd/yyyy}"/>
                    </StackPanel>
                        </Border>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
                </ScrollViewer>
        </StackPanel>
   
</Window>
